package zzr.library.db.dao;

import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.Query;
import androidx.room.Update;

import zzr.library.db.obj.BookDO;

@Dao
public interface BookDAO {

    @Insert
    void insert(BookDO bookDO);

    @Query("SELECT * FROM book WHERE bid = :bid")
    BookDO selectById(int bid);

    @Update
    void update(BookDO bookDO);
}
